package com.bw.shop_2302.adapter

import android.widget.ImageView
import com.bw.base.entity.Menu
import com.bw.shop_2302.R
import com.bw.shop_2302.utils.GlideUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MenuAdapter:BaseQuickAdapter<Menu,BaseViewHolder>(R.layout.item_menu) {
    override fun convert(holder: BaseViewHolder, item: Menu) {
        holder.setText(R.id.tv_menu,item.name)
        val view = holder.getView<ImageView>(R.id.iv_menu)
        GlideUtils.normalimag(context,item.pic,view)
    }
}